package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class STransportFailReward extends Object implements IMessageBase
    {
        public var finalExp:int;
        public var cashPledge:int;
        public var rewardCoin:int;
        public var killByPlayer:Boolean;
        public var killerMiniPlayer:SPublicMiniPlayer;
        public const _type:int = 12079;
        public static var _regist:STransportFailReward = new STransportFailReward(true);

        public function STransportFailReward(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new STransportFailReward();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.finalExp);
            param1.writeInt(this.cashPledge);
            param1.writeInt(this.rewardCoin);
            param1.writeBool(this.killByPlayer);
            this.killerMiniPlayer.__write(param1);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.finalExp = param1.readInt();
            this.cashPledge = param1.readInt();
            this.rewardCoin = param1.readInt();
            this.killByPlayer = param1.readBool();
            this.killerMiniPlayer = new SPublicMiniPlayer();
            this.killerMiniPlayer.__read(param1);
            
        }

    }
}
